package thread;

public class ThreadInfoDemo {
    public static void main(String[] args) {
        Thread main = Thread.currentThread();
        System.out.println(main);
        doSome();
    }
    public static void doSome(){
        Thread t = Thread.currentThread();
        System.out.println("t:"+t);
        System.out.println("name:"+t.getName());
        System.out.println("id:"+t.getId());
        System.out.println("alive:"+t.isAlive());
        System.out.println("daemon:"+t.isDaemon());
        System.out.println("interrupted；"+t.isInterrupted());
        System.out.println("priority:"+t.getPriority());
    }
}
